using UnityEngine;
using System.Collections;

public class CameraPerson : MonoBehaviour {
	
	public Transform Personagem;
	public static bool OlhaAction = false;
	public static bool OlhaPersonagem = true;	
	public Transform camera;
	public Transform MyCamera;
	
	void Update ()
	{
		if(OlhaPersonagem)
		{
			transform.localEulerAngles = new Vector3(14.5f,Personagem.transform.rotation.y,0);
			transform.position = new Vector3(Personagem.transform.position.x,Personagem.transform.position.y+3.5f,Personagem.transform.position.z -4);
			OlhaPersonagem = false;
		}
		
		if(OlhaAction)
		{
			MyCamera.active = false;
			camera.active = true;
			MyCamera.active = true;
		}
		
	}
		
}
